84% itchyrobot-oak-academy-resources-embed

Code Review | Embed Oak Academy Resources

WordPress plugin Embed Oak Academy Resources scored84%from 54 tests.

About plugin

  • Plugin page: itchyrobot-oak-ac...
  • Plugin version: 1.0
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4.2-5.4.2
  • WordPress version: 6.3.1
  • First release: Jul 16, 2020
  • Latest release: Jul 16, 2020
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: ScottItchy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /398 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
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Embed Oak Academy Resources
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.79 ▼2.20
Dashboard /wp-admin3.32 ▲0.0254.00 ▲1.90
Posts /wp-admin/edit.php3.37 ▲0.0147.53 ▼0.08
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.06 ▼15.83
Media Library /wp-admin/upload.php3.24 ▲0.0139.25 ▲2.75

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Embed Oak Academy Resources
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.23 ▼0.122.09 ▲0.3244.33 ▼0.24
Dashboard /wp-admin2,195 ▲175.62 ▼0.3491.36 ▼12.9341.00 ▼7.47
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0235.39 ▼2.2333.36 ▼1.56
Add New Post /wp-admin/post-new.php6,362 ▲4,83027.80 ▲4.72927.58 ▲282.0655.37 ▲4.50
Media Library /wp-admin/upload.php1,400 ▼04.25 ▲0.0598.96 ▼8.9244.23 ▼5.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/itchyrobot-oak-academy-resources-embed/oak-tree-resources.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: school, learning, oak academy

itchyrobot-oak-academy-resources-embed/oak-tree-resources.php 85% from 13 tests

"Embed Oak Academy Resources" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("itchyrobot-oak-academy-resources-embed.php" instead of "oak-tree-resources.php")
  • Requires PHP: The required version number did not match the one declared in readme.txt ("7.3.19" instead of "7.3")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected160 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1198103
PHP171157

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/oakacademy.png4.12KB2.33KB▼ 43.43%