84% wp-post-meta-revisions

Code Review | WP-Post-Meta-Revisions

WordPress plugin WP-Post-Meta-Revisions scored84%from 54 tests.

About plugin

  • Plugin page: wp-post-meta-revi...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.2
  • WordPress version: 6.3.1
  • First release: Dec 4, 2014
  • Latest release: Jul 17, 2023
  • Number of updates: 22
  • Update frequency: every 143.0 days
  • Top authors: adamsilverstein (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

500+ active /13,855 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.71ms] Passed 4 tests

Server-side resources used by WP-Post-Meta-Revisions
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.29 ▲1.97
Dashboard /wp-admin3.33 ▼0.0244.97 ▼13.43
Posts /wp-admin/edit.php3.38 ▲0.0245.68 ▲0.46
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.18 ▼3.83
Media Library /wp-admin/upload.php3.25 ▲0.0240.42 ▲6.35

Server storage [IO: ▲0.50MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WP-Post-Meta-Revisions
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.68 ▲0.511.71 ▲0.0243.60 ▲4.78
Dashboard /wp-admin2,198 ▲235.62 ▼0.0386.87 ▼16.1037.18 ▼1.96
Posts /wp-admin/edit.php2,100 ▼31.95 ▼0.0136.40 ▼3.1431.72 ▼3.71
Add New Post /wp-admin/post-new.php1,526 ▼1222.95 ▼0.31626.35 ▲8.2449.05 ▼19.03
Media Library /wp-admin/upload.php1,400 ▲64.12 ▼0.04117.57 ▲22.0045.02 ▲4.23

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-post-meta-revisions/tests/test-meta-revisions.php:15
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/wp-post-meta-revisions/tests/bootstrap.php on line 16
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-post-meta-revisions/tests/bootstrap.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-post-meta-revisions/wp-post-meta-revisions.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

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
Please fix the following attributes: Please take inspiration from this readme.txt

wp-post-meta-revisions/wp-post-meta-revisions.php Passed 13 tests

The main file in "WP-Post-Meta-Revisions" v. 2.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
19 characters long description:
Post Meta Revisions

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin498 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3127317369
Bourne Shell115558
XML22041
JSON10030

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1477.78%
▷ Protected methods316.67%
▷ Private methods15.56%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.14MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png32.17KB9.56KB▼ 70.28%
assets/icon-256x256.png115.94KB29.90KB▼ 74.21%