73% wp-meta-and-date-remover

Code Review | WP Meta and Date Remover

WordPress plugin WP Meta and Date Remover scored73%from 54 tests.

About plugin

  • Plugin page: wp-meta-and-date-...
  • Plugin version: 2.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4
  • WordPress version: 6.3.1
  • First release: Mar 4, 2015
  • Latest release: Nov 21, 2023
  • Number of updates: 189
  • Update frequency: every 16.9 days
  • Top authors: prasadkirpekar (100%)

Code review

54 tests

User reviews

66 reviews

Install metrics

90,000+ active /1,623,865 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲5.02MB] [CPU: ▲18.05ms] 75% from 4 tests

An overview of server-side resources used by WP Meta and Date Remover
Please have a look at the following items
  • Extra RAM: The extra memory usage should kept under 5MB (currently 5.02MB on /wp-admin/wp-meta-and-date-remover.php)
PageMemory (MB)CPU Time (ms)
Home /8.84 ▲5.3859.77 ▲15.29
Dashboard /wp-admin8.86 ▲5.5673.78 ▲29.97
Posts /wp-admin/edit.php8.86 ▲5.5075.64 ▲17.44
Add New Post /wp-admin/post-new.php9.52 ▲3.63105.41 ▲12.19
Media Library /wp-admin/upload.php8.86 ▲5.6363.75 ▲27.27
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius8.8661.18

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 200 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-posts
fs_accounts
fs_debug_mode
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
fs_active_plugins
db_upgraded
widget_recent-comments
wpmdr_settings

Browser metrics Passed 4 tests

A check of browser resources used by WP Meta and Date Remover
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲8214.30 ▼0.312.27 ▲0.5225.78 ▼18.13
Dashboard /wp-admin2,219 ▲495.62 ▲0.0696.95 ▼14.1348.23 ▲6.69
Posts /wp-admin/edit.php2,122 ▲251.97 ▼0.0640.66 ▲1.5939.91 ▼0.12
Add New Post /wp-admin/post-new.php1,534 ▲823.53 ▲0.45610.86 ▼62.8450.31 ▼6.98
Media Library /wp-admin/upload.php1,421 ▲184.18 ▼0.0196.04 ▼12.8145.43 ▼1.64
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,0761.6625.6427.96
WP Meta and Date Remover /wp-admin/wp-meta-and-date-remover.php260.410.0720.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/wp-meta-and-date-remover/freemius/includes/class-freemius.php+8546
    Undefined property: stdClass::$plugins
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • can_compress_scripts
    • fs_debug_mode
    • widget_recent-comments
    • wpmdr_settings
    • db_upgraded
    • widget_theysaidso_widget
    • fs_active_plugins
    • fs_accounts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/wp-meta-and-date-remover.php
    • > Network (severe)
    wp-admin/wp-meta-and-date-remover.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid url: "- https://paypal.me/prasadkirpekar"
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
You can take inspiration from this readme.txt

wp-meta-and-date-remover/wp-meta-and-date-remover.php Passed 13 tests

The main PHP file in "WP Meta and Date Remover" ver. 2.3.1 adds more information about the plugin and also serves as the entry point for this plugin
53 characters long description:
Remove meta and date information from posts and pages

Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin34,187 lines of code in 154 files:
LanguageFilesBlank linesComment linesLines of code
PHP1248,14717,35433,718
JavaScript66665424
CSS152023
JSON10014
SVG8008

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
The following items need your attention
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity81.70
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.53
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces1
Interfaces1
Traits0
Classes55
▷ Abstract classes23.64%
▷ Concrete classes5396.36%
▷ Final classes00.00%
Methods1,309
▷ Static methods19915.20%
▷ Public methods90869.37%
▷ Protected methods171.30%
▷ Private methods38429.34%
Functions108
▷ Named functions10496.30%
▷ Anonymous functions43.70%
Constants148
▷ Global constants10168.24%
▷ Class constants4731.76%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
assets/img/visual_remover.png19.96KB9.72KB▼ 51.30%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
assets/img/build_plugin.png33.12KB15.77KB▼ 52.38%