94% woosh-portfolio

Code Review | Woosh Portfolio

WordPress plugin Woosh Portfolio scored 94% from 54 tests.

About plugin

  • Plugin page: woosh-portfolio
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-4.1.0
  • WordPress version: 5.8.1
  • First release: Jul 11, 2014
  • Latest release: Dec 20, 2014
  • Number of updates: 22
  • Update frequency: every 7.4 days
  • Top authors: elrond1369 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 942 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼143.52ms] Passed 4 tests

A check of server-side resources used by Woosh Portfolio
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1536.66 ▲15.63
Dashboard /wp-admin3.09 ▲0.0340.70 ▼7.32
Posts /wp-admin/edit.php3.14 ▲0.0343.83 ▼4.27
Add New Post /wp-admin/post-new.php5.44 ▲0.0189.91 ▼567.15
Media Library /wp-admin/upload.php3.03 ▲0.0333.62 ▲4.65

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: 1 new table, no new options
New tables
wp_woosh

Browser metrics Passed 4 tests

A check of browser resources used by Woosh Portfolio
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,701 ▲10515.86 ▲0.058.17 ▼0.7346.46 ▼0.09
Dashboard /wp-admin2,987 ▲565.87 ▼0.08139.93 ▼2.82106.90 ▼2.96
Posts /wp-admin/edit.php2,759 ▲232.70 ▲0.0066.83 ▼0.5285.09 ▼5.20
Add New Post /wp-admin/post-new.php1,628 ▲13021.40 ▲2.54287.21 ▼80.39109.87 ▼0.40
Media Library /wp-admin/upload.php1,830 ▲235.01 ▼0.01165.04 ▲11.85124.41 ▲8.15

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% 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 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
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/woosh-portfolio/woosh-admin-page.php:5
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/woosh-portfolio/uninstall.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woosh-portfolio/woosh-admin.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/woosh-portfolio/woosh-portfolio.php:12
    • > PHP Fatal error
      Uncaught Error: Call to a member function query() on null in wp-content/plugins/woosh-portfolio/uninstall.php:4
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/woosh-portfolio/woosh-admin-page.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: media library, design, animation, youtube, portfolio...

woosh-portfolio/woosh-portfolio.php Passed 13 tests

The primary PHP file in "Woosh Portfolio" version 1.3.1 is used by WordPress to initiate all plugin functionality
57 characters long description:
Simply display your design projects and descriptive text.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin594 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript276209
PHP449205
CSS134180

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected