84% apparition

Code Review | Apparition!

WordPress plugin Apparition! scored 84% from 54 tests.

About plugin

  • Plugin page: apparition
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5
  • WordPress version: 6.3.1
  • First release: Jan 19, 2013
  • Latest release: Jan 24, 2013
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: sujin2f (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 934 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼0.83ms] Passed 4 tests

Analyzing server-side resources used by Apparition!
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.04 ▼4.79
Dashboard /wp-admin3.34 ▲0.0346.39 ▲1.24
Posts /wp-admin/edit.php3.39 ▲0.0348.72 ▲0.07
Add New Post /wp-admin/post-new.php5.92 ▲0.0394.77 ▲0.15
Media Library /wp-admin/upload.php3.26 ▲0.0339.30 ▲4.68
Apparition! /wp-admin/options-general.php?page=apparition3.2331.47

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Apparition!
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲8613.17 ▼1.521.66 ▲0.0640.04 ▼9.27
Dashboard /wp-admin2,221 ▲334.86 ▼0.03109.28 ▼4.5838.18 ▼1.67
Posts /wp-admin/edit.php2,104 ▲152.05 ▼0.0039.89 ▼1.5035.06 ▲0.39
Add New Post /wp-admin/post-new.php1,522 ▼1117.67 ▼5.38638.98 ▼13.1758.60 ▼10.83
Media Library /wp-admin/upload.php1,397 ▲64.15 ▼0.0697.42 ▼2.3042.14 ▼1.23
Apparition! /wp-admin/options-general.php?page=apparition8222.0223.4827.91

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/apparition/functions.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/apparition/functions.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: Screenshot #1 (Setting and Example. (세팅과 예시)) image missing
Please take inspiration from this readme.txt

apparition/apparition.php Passed 13 tests

The entry point to "Apparition!" version 1.0 is a PHP file that has certain tags in its header comment area
23 characters long description:
Show Links at Admin-bar

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin122 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23310118
CSS1104

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods541.67%
▷ Protected methods18.33%
▷ Private methods650.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png36.04KB11.66KB▼ 67.64%