10% wpp-customization

Code Review | Admin Customization

WordPress plugin Admin Customization scored10%from 54 tests.

About plugin

  • Plugin page: wpp-customization
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 28, 2013
  • Latest release: Jun 6, 2023
  • Number of updates: 12
  • Update frequency: every 287.4 days
  • Top authors: phpdevp (58.33%)mhdryz (50%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,533 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/wpp-customization/wpp-customization.php+32
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.92MB] [CPU: ▼51.08ms] Passed 4 tests

Analyzing server-side resources used by Admin Customization
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.405.03 ▼37.90
Dashboard /wp-admin2.09 ▼1.225.70 ▼42.19
Posts /wp-admin/edit.php2.09 ▼1.276.34 ▼41.08
Add New Post /wp-admin/post-new.php2.09 ▼3.806.30 ▼83.13
Media Library /wp-admin/upload.php2.09 ▼1.145.89 ▼28.30

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Admin Customization
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6413.37 ▼0.991.73 ▲0.0843.44 ▼0.94
Dashboard /wp-admin2,216 ▲284.87 ▼1.01114.46 ▼0.0139.61 ▲1.82
Posts /wp-admin/edit.php2,099 ▲72.00 ▼0.0234.13 ▼6.4230.70 ▼7.70
Add New Post /wp-admin/post-new.php1,521 ▼1217.57 ▼5.60678.99 ▼5.6559.13 ▼0.08
Media Library /wp-admin/upload.php1,392 ▲44.22 ▲0.0596.54 ▼13.2738.53 ▼9.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/wpp-customization/wpp-customization.php+32
    Trying to access array offset on value of type bool
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wpp-customization/wpp-customization.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Screenshot Admin Area) image required
The official readme.txt might help

wpp-customization/wpp-customization.php Passed 13 tests

The main PHP script in "Admin Customization" version 2.2 is automatically included on every request by WordPress
52 characters long description:
This plugin used to customize wordpress admin footer

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin112 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14827112

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.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.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png21.17KB12.74KB▼ 39.80%