83% wp-amp-it-up

Code Review | easy AMP=== easy AMP ===

WordPress plugin easy AMP=== easy AMP ===scored83%from 54 tests.

About plugin

  • Plugin page: wp-amp-it-up
  • Plugin version: 4.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1
  • WordPress version: 6.3.1
  • First release: Jul 1, 2016
  • Latest release: Jan 14, 2023
  • Number of updates: 396
  • Update frequency: every 6.0 days
  • Top authors: ampcloud (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /30,548 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by easy AMP=== easy AMP ===
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0544.13 ▲5.95
Dashboard /wp-admin3.36 ▲0.0548.74 ▲0.70
Posts /wp-admin/edit.php3.41 ▲0.0549.13 ▼4.32
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.81 ▼17.19
Media Library /wp-admin/upload.php3.28 ▲0.0537.81 ▼1.26

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

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

Browser metrics Passed 4 tests

A check of browser resources used by easy AMP=== easy AMP ===
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.33 ▼0.401.75 ▼0.4344.25 ▲0.73
Dashboard /wp-admin2,195 ▲155.56 ▼0.1091.14 ▲3.4547.18 ▲5.49
Posts /wp-admin/edit.php2,100 ▼31.95 ▼0.1934.34 ▼4.6736.72 ▲0.56
Add New Post /wp-admin/post-new.php1,533 ▲523.22 ▼0.10660.53 ▼37.0957.88 ▲2.81
Media Library /wp-admin/upload.php1,397 ▼64.21 ▲0.06101.71 ▼1.1643.70 ▲0.24

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • 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 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
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-amp-it-up/wp-amp-it-up.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === easy AMP=== easy AMP ====== )
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt is a good inspiration

wp-amp-it-up/wp-amp-it-up.php 92% from 13 tests

This is the main PHP file of "easy AMP=== easy AMP ===" version 4.0, 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:
  • Description: The description should be shorter than 140 characters (currently 416 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,615 lines of code in 112 files:
LanguageFilesBlank linesComment linesLines of code
PO File1105507702,200
PHP2241129415

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
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
There are no PNG files in this plugin