83% amp-plus

Code Review | AMP+ Plus=== AMP+ Plus ===

WordPress plugin AMP+ Plus=== AMP+ Plus ===scored83%from 54 tests.

About plugin

  • Plugin page: amp-plus
  • Plugin version: 3.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-5.7.2
  • WordPress version: 6.3.1
  • First release: Sep 1, 2016
  • Latest release: Jun 2, 2021
  • Number of updates: 114
  • Update frequency: every 15.2 days
  • Top authors: ampcloud (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

80+ active /7,553 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼8.86ms] Passed 4 tests

An overview of server-side resources used by AMP+ Plus=== AMP+ Plus ===
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.53 ▼3.87
Dashboard /wp-admin3.36 ▲0.0549.04 ▼6.73
Posts /wp-admin/edit.php3.41 ▲0.0547.86 ▼3.24
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.99 ▼21.03
Media Library /wp-admin/upload.php3.28 ▲0.0537.36 ▼3.79

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Please fix the following
  • There were 1 file (0.06KB) illegally modified outside of "wp-content/plugins/amp-plus/" and "wp-content/uploads/"
    • (new file) ads.txt
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for AMP+ Plus=== AMP+ Plus ===
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.20 ▼0.171.88 ▼0.0544.83 ▲1.54
Dashboard /wp-admin2,198 ▲245.62 ▼0.0485.20 ▼4.8640.58 ▼0.65
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0840.76 ▼2.3839.63 ▲3.87
Add New Post /wp-admin/post-new.php1,526 ▼222.91 ▼0.17643.06 ▼52.7852.24 ▼11.78
Media Library /wp-admin/upload.php1,391 ▼94.17 ▲0.03100.90 ▼14.1045.54 ▼0.86

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
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/amp-plus/amp-plus.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Please a description for screenshot #8 in amp-plus/assets to your readme.txt
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === AMP+ Plus=== AMP+ Plus ====== )
  • Tags: There are too many tags (12 tag instead of maximum 10)
Please take inspiration from this readme.txt

amp-plus/amp-plus.php 92% from 13 tests

The primary PHP file in "AMP+ Plus=== AMP+ Plus ===" version 3.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 394 characters long)

Code Analysis Passed 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
There were no executable files found in this plugin416 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2241125416

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions12
▷ Named functions12100.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
PNG images were not found in this plugin