68% acosmin-north-extensions

Code Review | North Extensions

WordPress plugin North Extensions scored68%from 54 tests.

About plugin

  • Plugin page: acosmin-north-ext...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.8
  • WordPress version: 6.3.1
  • First release: Jun 24, 2017
  • Latest release: Jun 24, 2017
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: acosmin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,344 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼1.52MB] [CPU: ▼47.58ms] Passed 4 tests

This is a short check of server-side resources used by North Extensions
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.47 ▼0.9912.48 ▼27.48
Dashboard /wp-admin2.48 ▼0.8210.71 ▼42.33
Posts /wp-admin/edit.php2.48 ▼0.8713.91 ▼28.66
Add New Post /wp-admin/post-new.php2.48 ▼3.4012.83 ▼91.86
Media Library /wp-admin/upload.php2.48 ▼0.7514.39 ▼18.60
Instagram Settings /wp-admin/options-general.php?page=northe-instagram-settings2.4812.69

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_north-w-das
theysaidso_admin_options
widget_north-wid-instagram
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for North Extensions
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.21 ▼1.164.35 ▲2.5040.68 ▼3.69
Dashboard /wp-admin2,214 ▲264.88 ▼0.05110.42 ▼1.5341.41 ▼5.15
Posts /wp-admin/edit.php2,097 ▲52.02 ▲0.0239.17 ▼0.6735.27 ▼1.65
Add New Post /wp-admin/post-new.php6,237 ▲4,69526.16 ▲7.76872.30 ▲237.3972.09 ▲17.49
Media Library /wp-admin/upload.php1,399 ▲114.25 ▲0.0494.65 ▼3.2941.85 ▼1.11
Instagram Settings /wp-admin/options-general.php?page=northe-instagram-settings8252.0527.4933.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/acosmin-north-extensions/widgets/instagram/instagram-class.php+58
    Trying to access array offset on value of type bool
  • Zombie WordPress options detected upon uninstall: 8 options
    • theysaidso_admin_options
    • widget_north-wid-instagram
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_north-w-das
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=northe-instagram-settings
    • > Notice in wp-content/plugins/acosmin-north-extensions/settings-pages/instagram.php+87
    Trying to access array offset on value of type bool

SRP 50% from 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
Almost there! Just fix the following items
  • 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acosmin-north-extensions/widgets/init.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acosmin-north-extensions/inc/enqueue-backend.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Northe_Widgets_Base' not found in wp-content/plugins/acosmin-north-extensions/widgets/ads/ads.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acosmin-north-extensions/widgets/ads/ads-tmpl.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acosmin-north-extensions/customizer/init.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acosmin-north-extensions/sections/instagram/instagram-tmpl.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acosmin-north-extensions/modules/title-design/init.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acosmin-north-extensions/sections/init.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/acosmin-north-extensions/sections/category/category.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Northe_Widgets_Base' not found in wp-content/plugins/acosmin-north-extensions/sections/ads/ads.php:10

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: There were no tags found
You can take inspiration from this readme.txt

acosmin-north-extensions/acosmin-north-extensions.php Passed 13 tests

The main PHP script in "North Extensions" version 1.0.0 is automatically included on every request by WordPress
116 characters long description:
Adds front page sections (Instagram, Ads), a post title design option and other extensions to North WordPress theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,648 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP214448931,603
JavaScript2154242
CSS1183

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity17.71
▷ Minimum class complexity6.00
▷ Maximum class complexity35.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods36
▷ Static methods38.33%
▷ Public methods3391.67%
▷ Protected methods38.33%
▷ Private methods00.00%
Functions45
▷ Named functions45100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.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
No PNG files were detected