90% mws-noindex-attachment-pages

Code Review | MWS Noindex Attachment Pages

WordPress plugin MWS Noindex Attachment Pages scored90%from 54 tests.

About plugin

  • Plugin page: mws-noindex-attac...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.7
  • WordPress version: 6.3.1
  • First release: Jul 22, 2018
  • Latest release: Nov 10, 2018
  • Number of updates: 10
  • Update frequency: every 11.7 days
  • Top authors: modernwebstudios (100%)

Code review

54 tests

User reviews

1 review

Install metrics

800+ active /1,705 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.78ms] Passed 4 tests

This is a short check of server-side resources used by MWS Noindex Attachment Pages
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.68 ▼4.96
Dashboard /wp-admin3.31 ▲0.0050.58 ▼4.67
Posts /wp-admin/edit.php3.36 ▲0.0053.18 ▲1.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.22 ▼0.29
Media Library /wp-admin/upload.php3.23 ▲0.0035.43 ▼1.20

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by MWS Noindex Attachment Pages
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.381.68 ▼0.0344.09 ▲0.10
Dashboard /wp-admin2,195 ▲155.65 ▼0.0392.81 ▼1.0443.40 ▼1.21
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0639.21 ▲2.6638.53 ▼1.06
Add New Post /wp-admin/post-new.php1,527 ▼223.36 ▲0.10670.92 ▲5.6966.58 ▲13.15
Media Library /wp-admin/upload.php1,391 ▼94.20 ▼0.08106.01 ▲0.8143.49 ▼6.11

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 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)
Good news, no errors were detected

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 Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: meta, seo robots meta, attachment pages, seo noindex, noindex...

mws-noindex-attachment-pages/mws-noindex-attachment-pages.php Passed 13 tests

The main PHP script in "MWS Noindex Attachment Pages" version 1.0 is automatically included on every request by WordPress
35 characters long description:
Add meta robots to attachment pages

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin11 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131211

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.67
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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin