90% amp-mobile-sites-creator

Code Review | Create an AMP Mobile Site from your WordPress site for Fast, High Converting pages on Mobile

WordPress plugin Create an AMP Mobile Site from your WordPress site for Fast, High Converting pages on Mobile scored90%from 54 tests.

About plugin

  • Plugin page: amp-mobile-sites-...
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.8.2
  • WordPress version: 6.3.1
  • First release: Nov 8, 2017
  • Latest release: Dec 16, 2017
  • Number of updates: 10
  • Update frequency: every 5.2 days
  • Top authors: ampsites (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /782 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Create an AMP Mobile Site from your WordPress site for Fast, High Converting pages on Mobile
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.14 ▼5.32
Dashboard /wp-admin3.31 ▲0.0146.53 ▼1.04
Posts /wp-admin/edit.php3.36 ▲0.0146.29 ▼0.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.56 ▼9.14
Media Library /wp-admin/upload.php3.23 ▲0.0033.07 ▼1.83

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Create an AMP Mobile Site from your WordPress site for Fast, High Converting pages on Mobile
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.29 ▼1.141.68 ▼0.2343.43 ▲0.25
Dashboard /wp-admin2,220 ▲325.86 ▲0.96105.21 ▲1.6079.29 ▲36.66
Posts /wp-admin/edit.php2,106 ▲172.03 ▲0.0638.00 ▲2.0533.89 ▼4.04
Add New Post /wp-admin/post-new.php1,542 ▲2223.33 ▲0.17775.55 ▲112.8354.53 ▼3.22
Media Library /wp-admin/upload.php1,399 ▲144.19 ▼0.0495.86 ▼6.4973.00 ▲28.86

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: amp, creator

amp-mobile-sites-creator/amp-mobile-sites-creator.php 92% from 13 tests

The entry point to "Create an AMP Mobile Site from your WordPress site for Fast, High Converting pages on Mobile" version 1.0.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 249 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,014 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3183654856
JavaScript2179131814
CSS2660344

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.91
Average class complexity134.00
▷ Minimum class complexity134.00
▷ Maximum class complexity134.00
Average method complexity4.80
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods35
▷ Static methods925.71%
▷ Public methods3394.29%
▷ Protected methods25.71%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.01MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/logo.png4.73KB3.33KB▼ 29.76%
img/icon_amp.png0.43KB0.57KB0.00%