74% edukit-notes

Code Review | EduKit Notes

WordPress plugin EduKit Notes scored74%from 54 tests.

About plugin

  • Plugin page: edukit-notes
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2
  • WordPress version: 6.3.1
  • First release: Apr 21, 2017
  • Latest release: Apr 7, 2017
  • Number of updates: 6
  • Update frequency: every 4.7 days
  • Top authors: alexfurr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /563 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.70ms] Passed 4 tests

An overview of server-side resources used by EduKit Notes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1842.73 ▼9.15
Dashboard /wp-admin3.34 ▼0.0049.98 ▼17.85
Posts /wp-admin/edit.php3.40 ▲0.0452.16 ▲3.02
Add New Post /wp-admin/post-new.php5.93 ▲0.0496.91 ▼0.31
Media Library /wp-admin/upload.php3.27 ▲0.0437.10 ▲0.50
Add New Note /wp-admin/post-new.php?post_type=ek_notes3.3050.60
All Notes /wp-admin/edit.php?post_type=ek_notes3.3143.21
Settings /wp-admin/edit.php?post_type=ek_notes&page=ek-notes-settings3.3031.96

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: 1 new table, 8 new options
New tables
wp_ek_notes
New WordPress options
widget_theysaidso_widget
ek_notes_version
widget_recent-posts
theysaidso_admin_options
ek-notes-autoAdd
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for EduKit Notes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲17713.42 ▼0.967.99 ▲6.1151.08 ▲4.37
Dashboard /wp-admin2,226 ▲465.67 ▼0.0285.04 ▼3.6339.79 ▼2.08
Posts /wp-admin/edit.php2,134 ▲341.99 ▼0.0539.64 ▼3.5736.91 ▲3.62
Add New Post /wp-admin/post-new.php1,580 ▲4918.35 ▼4.71610.69 ▼65.3354.19 ▲3.84
Media Library /wp-admin/upload.php1,428 ▲254.13 ▼0.09103.65 ▲8.6847.64 ▲3.06
Add New Note /wp-admin/post-new.php?post_type=ek_notes1,4092.5648.8934.66
All Notes /wp-admin/edit.php?post_type=ek_notes1,1091.9330.2935.11
Settings /wp-admin/edit.php?post_type=ek_notes&page=ek-notes-settings9221.9922.0428.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_ek_notes
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • ek-notes-autoAdd
    • db_upgraded
    • ek_notes_version
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% 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
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/edukit-notes/edukit-notes.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/edukit-notes/classes/class-database.php:19
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/edukit-notes/classes/class-database.php on line 17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edukit-notes/classes/class-ajax.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edukit-notes/functions.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edukit-notes/classes/class-cpts.php:23

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots lack descriptions #1, #2, #3 in edukit-notes/assets to your readme.txt
You can look at the official readme.txt

edukit-notes/edukit-notes.php Passed 13 tests

Analyzing the main PHP file in "EduKit Notes" version 0.1
68 characters long description:
Allows students to create notes on specific pages, or all page types

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 plugin679 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP8303103555
CSS2161197
JavaScript113227

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity4.33
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.69
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods29
▷ Static methods620.69%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin