94% organizing

Code Review | Organizing

WordPress plugin Organizing scored 94% from 54 tests.

About plugin

  • Plugin page: organizing
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.4-4.9.4
  • WordPress version: 5.8.1
  • First release: Feb 27, 2018
  • Latest release: Mar 5, 2018
  • Number of updates: 5
  • Update frequency: every 1.4 days
  • Top authors: HenriqueSilverio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 852 total downloads

Benchmarks

Plugin footprint Passed 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.16MB] [CPU: ▼145.57ms] Passed 4 tests

This is a short check of server-side resources used by Organizing
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.97 ▲0.2538.13 ▲15.81
Dashboard /wp-admin3.25 ▲0.2046.69 ▲4.50
Posts /wp-admin/edit.php3.31 ▲0.2045.09 ▲0.81
Add New Post /wp-admin/post-new.php5.55 ▲0.1284.65 ▼578.71
Media Library /wp-admin/upload.php3.13 ▲0.1334.09 ▼8.89
Categories /wp-admin/edit-tags.php?taxonomy=organizing&post_type=attachment3.1330.73
Organizing /wp-admin/options-general.php?page=options-organizing3.1030.87

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Organizing
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,689 ▲9315.78 ▼0.248.93 ▼2.6756.68 ▲6.30
Dashboard /wp-admin2,980 ▲495.93 ▼0.09134.75 ▼2.61112.10 ▲1.83
Posts /wp-admin/edit.php2,749 ▲102.72 ▲0.0262.51 ▼1.3086.86 ▼1.17
Add New Post /wp-admin/post-new.php1,682 ▼19018.83 ▼0.31358.35 ▼17.19103.19 ▼6.58
Media Library /wp-admin/upload.php1,763 ▼444.98 ▼0.06139.70 ▼3.23121.05 ▼13.18
Categories /wp-admin/edit-tags.php?taxonomy=organizing&post_type=attachment1,7492.3857.4686.38
Organizing /wp-admin/options-general.php?page=options-organizing1,0482.1052.1776.22

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 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/organizing/templates/admin/metabox.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/organizing/templates/listing.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/organizing/templates/admin/settings.php:10

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 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
8 plugin tags: pdf, docs, document library, pdf manager, downloadable pdf...

organizing/organizing.php Passed 13 tests

This is the main PHP file of "Organizing" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
83 characters long description:
Easily create a Document Library and show a filterable listing with download links.

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
Everything looks great! No dangerous files found in this plugin3,078 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
JSON4001,652
PHP222316721,039
Sass106362304
JavaScript219071
Markdown110011
CSS1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity6.15
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity1.96
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes17.69%
Methods71
▷ Static methods68.45%
▷ Public methods6185.92%
▷ Protected methods00.00%
▷ Private methods1014.08%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants7
▷ Global constants571.43%
▷ Class constants228.57%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin