83% amaucp-coming-soon-page

Code Review | AMAUCP | Coming Soon Page / Maintenance Mode

WordPress plugin AMAUCP | Coming Soon Page / Maintenance Mode scored83%from 54 tests.

About plugin

  • Plugin page: amaucp-coming-soo...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 6, 2018
  • Latest release: Jan 15, 2018
  • Number of updates: 18
  • Update frequency: every 0.6 days
  • Top authors: wpamanuke (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /922 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲2.30MB] [CPU: ▲4.86ms] Passed 4 tests

Server-side resources used by AMAUCP | Coming Soon Page / Maintenance Mode
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /5.42 ▲1.9651.94 ▲10.02
Dashboard /wp-admin5.77 ▲2.4357.66 ▼3.01
Posts /wp-admin/edit.php5.82 ▲2.4750.83 ▲6.78
Add New Post /wp-admin/post-new.php8.29 ▲2.4195.75 ▲5.63
Media Library /wp-admin/upload.php5.63 ▲2.4153.21 ▲20.66
Social /wp-admin/edit.php?post_type=amaucp_subscriber&page=amaucp_social9.5473.81
UCP Optons /wp-admin/edit.php?post_type=amaucp_subscriber&page=amaucp_irsethemes9.3873.43
Settings /wp-admin/edit.php?post_type=amaucp_subscriber&page=amaucp_settings9.7079.39
All Subscribers /wp-admin/edit.php?post_type=amaucp_subscriber5.6849.55
Subscribe /wp-admin/edit.php?post_type=amaucp_subscriber&page=amaucp_subscribe9.4371.24
Reset /wp-admin/edit.php?post_type=amaucp_subscriber&page=amaucp_reset9.3268.00

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 309 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for AMAUCP | Coming Soon Page / Maintenance Mode
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,865 ▲11914.78 ▲0.411.87 ▼0.0841.70 ▼2.19
Dashboard /wp-admin2,262 ▲735.87 ▲0.97108.80 ▼10.7141.72 ▼0.37
Posts /wp-admin/edit.php2,145 ▲592.01 ▼0.0134.08 ▼1.2034.05 ▼0.73
Add New Post /wp-admin/post-new.php1,574 ▲5523.07 ▼0.05674.85 ▲7.3361.50 ▲5.92
Media Library /wp-admin/upload.php1,447 ▲594.22 ▲0.00109.00 ▲11.0848.88 ▲3.58
Social /wp-admin/edit.php?post_type=amaucp_subscriber&page=amaucp_social1,4344.5175.4184.83
UCP Optons /wp-admin/edit.php?post_type=amaucp_subscriber&page=amaucp_irsethemes1,4513.8058.2549.09
Settings /wp-admin/edit.php?post_type=amaucp_subscriber&page=amaucp_settings2,4694.7776.71119.81
All Subscribers /wp-admin/edit.php?post_type=amaucp_subscriber1,1061.9929.5628.73
Subscribe /wp-admin/edit.php?post_type=amaucp_subscriber&page=amaucp_subscribe1,3734.4052.3044.20
Reset /wp-admin/edit.php?post_type=amaucp_subscriber&page=amaucp_reset1,2014.2451.4731.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 225× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPageFramework' not found in wp-content/plugins/amaucp-coming-soon-page/admin/class-amaucp-feature-team.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPageFramework' not found in wp-content/plugins/amaucp-coming-soon-page/admin/class-amaucp-about.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/amaucp-coming-soon-page/library/apf/factory/_common/form/_view/sectionset/format/AdminPageFramework_Form_View___Format_SectionsetsByTab.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function amaucp_style_enqueue() in wp-content/plugins/amaucp-coming-soon-page/themes/default/functions.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/amaucp-coming-soon-page/library/apf/factory/_common/form/_view/resource/AdminPageFramework_Form_View__Resource.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function amaucp_style_enqueue() in wp-content/plugins/amaucp-coming-soon-page/themes/nano-complete/functions.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function amaucp_head() in wp-content/plugins/amaucp-coming-soon-page/themes/coming-soon/index.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPageFramework_HelpPane_Base' not found in wp-content/plugins/amaucp-coming-soon-page/library/apf/factory/term_meta/_controller/AdminPageFramework_HelpPane_term_meta.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPageFramework_Factory' not found in wp-content/plugins/amaucp-coming-soon-page/library/apf/factory/taxonomy_field/AdminPageFramework_TaxonomyField.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'AdminPageFramework_Property_post_meta_box' not found in wp-content/plugins/amaucp-coming-soon-page/library/apf/factory/user_meta/_model/AdminPageFramework_Property_user_meta.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: under construction page, coming soon page, maintenance mode, coming soon

amaucp-coming-soon-page/amaucp.php 85% from 13 tests

The principal PHP file in "AMAUCP | Coming Soon Page / Maintenance Mode" v. 1.0.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("amaucp-coming-soon-page.php" instead of "amaucp.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 246 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin47,083 lines of code in 274 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript152,61547318,924
PHP2451,0551,79818,404
CSS131992187,084
SVG1002,671

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity6.93
▷ Minimum class complexity1.00
▷ Maximum class complexity159.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes337
▷ Abstract classes9327.60%
▷ Concrete classes24472.40%
▷ Final classes20.82%
Methods1,738
▷ Static methods24313.98%
▷ Public methods98356.56%
▷ Protected methods27515.82%
▷ Private methods48027.62%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants17.69%
▷ Class constants1292.31%
▷ Public constants12100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
26 PNG files occupy 0.76MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/css/images/ui-bg_glass_75_e6e6e6_1x400.png0.32KB0.15KB▼ 53.40%
themes/quotes/images/frame_background.png2.91KB0.20KB▼ 93.28%
themes/quotes/screenshot.png72.59KB23.37KB▼ 67.80%
themes/default/images/placeholder-team.png0.96KB0.92KB▼ 4.77%
themes/xdefault/screenshot.png40.45KB13.91KB▼ 65.61%