89% docs-viewer-add-on-for-wp-job-openings

Code Review | Docs Viewer Add-On for WP Job Openings

WordPress plugin Docs Viewer Add-On for WP Job Openings scored89%from 54 tests.

About plugin

  • Plugin page: docs-viewer-add-o...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 29, 2018
  • Latest release: Aug 9, 2023
  • Number of updates: 12
  • Update frequency: every 150.6 days
  • Top authors: awsmin (58.33%)aravindajith (50%)

Code review

54 tests

User reviews

3 reviews

Install metrics

6,000+ active /20,903 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 gracefully, with no errors

Server metrics [RAM: ▼0.16MB] [CPU: ▼14.31ms] Passed 4 tests

This is a short check of server-side resources used by Docs Viewer Add-On for WP Job Openings
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.50 ▼4.74
Dashboard /wp-admin3.22 ▼0.1331.98 ▼29.06
Posts /wp-admin/edit.php3.28 ▼0.0737.55 ▼10.00
Add New Post /wp-admin/post-new.php5.46 ▼0.4380.68 ▼13.43
Media Library /wp-admin/upload.php3.22 ▼0.0132.14 ▼2.54

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Docs Viewer Add-On for WP Job Openings
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6314.72 ▲0.101.72 ▲0.2638.22 ▲0.59
Dashboard /wp-admin2,218 ▲405.61 ▼0.0091.35 ▼7.2041.26 ▼1.95
Posts /wp-admin/edit.php2,121 ▲212.03 ▼0.0139.12 ▲4.3737.58 ▼1.54
Add New Post /wp-admin/post-new.php1,555 ▲2618.04 ▼4.89593.02 ▼46.1957.87 ▼13.32
Media Library /wp-admin/upload.php1,420 ▲174.22 ▲0.0397.33 ▼1.0844.30 ▲0.55

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can look at the official readme.txt

docs-viewer-add-on-for-wp-job-openings/docs-viewer.php 92% from 13 tests

The main PHP script in "Docs Viewer Add-On for WP Job Openings" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("docs-viewer-add-on-for-wp-job-openings.php" instead of "docs-viewer.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected92 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP291392

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected