83% is-your-server-ready-for-wordpress-32

Code Review | Is Your Server Ready for WordPress 3.5

WordPress plugin Is Your Server Ready for WordPress 3.5 scored 83% from 54 tests.

About plugin

  • Plugin page: is-your-server-re...
  • Plugin version: 2...
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 20, 2011
  • Latest release: Dec 12, 2012
  • Number of updates: 12
  • Update frequency: every 57.7 days
  • Top authors: Greenweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,320 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.17MB] [CPU: ▼15.92ms] Passed 4 tests

This is a short check of server-side resources used by Is Your Server Ready for WordPress 3.5
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.82 ▲2.28
Dashboard /wp-admin3.20 ▼0.1132.49 ▼18.94
Posts /wp-admin/edit.php3.26 ▼0.0934.66 ▼17.29
Add New Post /wp-admin/post-new.php5.44 ▼0.4578.22 ▼18.60
Media Library /wp-admin/upload.php3.20 ▼0.0329.86 ▼8.83

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
recovery_mode_email_last_sent
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Is Your Server Ready for WordPress 3.5
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,453 ▼1,29312.11 ▼2.282.35 ▲0.3645.76 ▼1.55
Dashboard /wp-admin846 ▼1,3421.38 ▼4.4714.12 ▼104.2225.79 ▼26.62
Posts /wp-admin/edit.php857 ▼1,2351.53 ▼0.478.01 ▼35.7224.26 ▼16.70
Add New Post /wp-admin/post-new.php583 ▼9371.73 ▼21.3322.81 ▼688.027.52 ▼49.14
Media Library /wp-admin/upload.php742 ▼6461.73 ▼2.4823.66 ▼89.1825.45 ▼29.60

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
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • recovery_mode_email_last_sent

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 add_action() in wp-content/plugins/is-your-server-ready-for-wordpress-32/are-you-ready-4-32.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Requires at least: Invalid plugin version format
  • Screenshots: Screenshot #1 (Success Message) image required
Please take inspiration from this readme.txt

is-your-server-ready-for-wordpress-32/are-you-ready-4-32.php 85% from 13 tests

This is the main PHP file of "Is Your Server Ready for WordPress 3.5" version 2..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("is-your-server-ready-for-wordpress-32.php" instead of "are-you-ready-4-32.php")
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "2...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected69 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1162469

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.03MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png27.05KB23.53KB▼ 13.03%