84% learnegy-core

Code Review | Learnegy Core

WordPress plugin Learnegy Core scored 84% from 54 tests.

About plugin

  • Plugin page: learnegy-core
  • Plugin version: 1.0.0
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.9.2
  • WordPress version: 6.3.1
  • First release: Mar 28, 2022
  • Latest release: Mar 31, 2022
  • Number of updates: 5
  • Update frequency: every 1.8 days
  • Top authors: saifullahsiddique (60%)mamurjorit (60%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 574 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 successfully, without throwing any errors or notices

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

Server-side resources used by Learnegy Core
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.75 ▼5.98
Dashboard /wp-admin3.31 ▲0.0146.40 ▼2.78
Posts /wp-admin/edit.php3.36 ▲0.0147.72 ▲0.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.51 ▼4.95
Media Library /wp-admin/upload.php3.24 ▲0.0133.48 ▼3.94

Server storage [IO: ▲0.05MB] [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: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Learnegy Core
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.61 ▼1.031.83 ▼0.4144.85 ▼1.69
Dashboard /wp-admin2,203 ▲185.82 ▲0.9595.83 ▼7.8239.46 ▼6.10
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0541.10 ▼1.7137.44 ▲0.43
Add New Post /wp-admin/post-new.php1,535 ▲2123.44 ▲5.86623.93 ▼75.9350.97 ▼7.93
Media Library /wp-admin/upload.php1,388 ▲64.20 ▼0.03109.55 ▲5.8846.39 ▲0.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/learnegy-core/templates/front.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

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
1 plugin tags: learnegy-theme-companion

learnegy-core/learnegy-companion.php 92% from 13 tests

The main file in "Learnegy Core" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("learnegy-core.php" instead of "learnegy-companion.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin589 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33919589

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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 are no PNG files in this plugin