78% siiimple-aph

Code Review | Siiimple APH

WordPress plugin Siiimple APH scored78%from 54 tests.

About plugin

  • Plugin page: siiimple-aph
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5
  • WordPress version: 6.3.1
  • First release: Feb 25, 2019
  • Latest release: Aug 5, 2020
  • Number of updates: 17
  • Update frequency: every 31.2 days
  • Top authors: francoisdubois.siiimple (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /564 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Siiimple APH
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.85 ▼1.12
Dashboard /wp-admin3.30 ▼0.0434.94 ▼29.48
Posts /wp-admin/edit.php3.50 ▲0.1444.40 ▼2.81
Add New Post /wp-admin/post-new.php5.97 ▲0.0882.99 ▼12.26
Media Library /wp-admin/upload.php3.31 ▲0.0833.06 ▼1.97

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Siiimple APH
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,899 ▼84713.89 ▼0.546.76 ▲5.0051.12 ▲10.36
Dashboard /wp-admin1,239 ▼9525.26 ▼0.6271.61 ▼25.3632.80 ▼11.30
Posts /wp-admin/edit.php1,913 ▼1762.03 ▼0.0331.31 ▼5.5729.27 ▼1.03
Add New Post /wp-admin/post-new.php1,388 ▼12622.92 ▲5.48671.16 ▼13.7760.56 ▲6.37
Media Library /wp-admin/upload.php1,212 ▼1734.19 ▼0.0297.13 ▼3.9939.98 ▼5.40

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/siiimple-aph/services/cookieconsent.php
  • 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/siiimple-aph/includes/functions/options.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/siiimple-aph/includes/functions/dashboard.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function flatsome_option() in wp-content/plugins/siiimple-aph/templates/aph.php:5
    • > PHP Warning
      Use of undefined constant IIIAPH_PLUGIN_FILE - assumed 'IIIAPH_PLUGIN_FILE' (this will throw an Error in a future version of PHP) in wp-content/plugins/siiimple-aph/includes/init.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/siiimple-aph/includes/functions/front-end.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function shortcode_exists() in wp-content/plugins/siiimple-aph/includes/functions/shortcodes.php:2
    • > PHP Warning
      require_once(./includes/functions/front-end.php): failed to open stream: No such file or directory in wp-content/plugins/siiimple-aph/includes/init.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/siiimple-aph/includes/functions/templater.php:54
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/siiimple-aph/services/googletagmanager.php:1
    • > PHP Fatal error
      require_once(): Failed opening required './includes/functions/front-end.php' (include_path='.:/usr/share/php') in wp-content/plugins/siiimple-aph/includes/init.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: aph, siiimple, dashboard

siiimple-aph/siiimple-aph.php 92% from 13 tests

The main PHP script in "Siiimple APH" version 1.0.6 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
No dangerous file extensions were detected489 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP123838405
CSS32272
SVG10011
JavaScript1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin