78% install-ageify

Code Review | Ageify

WordPress plugin Ageify scored78%from 54 tests.

About plugin

  • Plugin page: install-ageify
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 29, 2018
  • Latest release: Nov 6, 2018
  • Number of updates: 19
  • Update frequency: every 0.6 days
  • Top authors: upcomdev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /598 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.10MB] [CPU: ▼8.37ms] Passed 4 tests

An overview of server-side resources used by Ageify
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1141.93 ▲1.37
Dashboard /wp-admin3.41 ▲0.0751.83 ▼15.39
Posts /wp-admin/edit.php3.53 ▲0.1750.66 ▼1.27
Add New Post /wp-admin/post-new.php6.00 ▲0.1085.03 ▼17.73
Media Library /wp-admin/upload.php3.34 ▲0.1037.45 ▲0.92

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Ageify
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.37 ▼0.301.88 ▼0.0440.03 ▲1.00
Dashboard /wp-admin2,211 ▲375.66 ▲0.1192.92 ▲1.4142.28 ▼2.52
Posts /wp-admin/edit.php2,113 ▲132.05 ▲0.0537.52 ▼4.3134.66 ▼3.95
Add New Post /wp-admin/post-new.php1,552 ▲823.01 ▼0.17676.37 ▲15.6553.58 ▼0.97
Media Library /wp-admin/upload.php1,416 ▲164.26 ▲0.13102.12 ▼6.4941.99 ▼6.76

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 take a closer look at the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/install-ageify/ageifyIncludes/InitAgeify.php
    • > /wp-content/plugins/install-ageify/install-ageify.php
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/install-ageify/templates/admin.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'AgeifyIncludes\\Base\\AgeifyBaseController' not found in wp-content/plugins/install-ageify/ageifyIncludes/Api/Callbacks/AgeifyAdminCallbacks.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'AgeifyIncludes\\Base\\AgeifyBaseController' not found in wp-content/plugins/install-ageify/ageifyIncludes/Base/AgeifySettingsLinks.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'AgeifyIncludes\\Base\\AgeifyBaseController' not found in wp-content/plugins/install-ageify/ageifyIncludes/Pages/AgeifyAdmin.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'AgeifyIncludes\\Base\\AgeifyBaseController' not found in wp-content/plugins/install-ageify/ageifyIncludes/Base/AgeifyEnqueue.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Add tracking code provided from https://age-ify.com/#contact.) image not found
You can take inspiration from this readme.txt

install-ageify/install-ageify.php 92% from 13 tests

The primary PHP file in "Ageify" version 1.1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected966 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP20451211666
JavaScript13014146
CSS2249136
JSON20018

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity6.58
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes18.33%
Methods54
▷ Static methods712.96%
▷ Public methods5398.15%
▷ Protected methods00.00%
▷ Private methods11.85%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.35MB with 0.21MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png354.95KB140.46KB▼ 60.43%