84% it-listings

Code Review | IT Listings

WordPress plugin IT Listings scored 84% from 54 tests.

About plugin

  • Plugin page: it-listings
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Apr 28, 2022
  • Latest release: Jul 14, 2023
  • Number of updates: 8
  • Update frequency: every 55.5 days
  • Top authors: indithemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,267 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Server-side resources used by IT Listings
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.92 ▼5.27
Dashboard /wp-admin3.32 ▲0.0150.67 ▲4.40
Posts /wp-admin/edit.php3.37 ▲0.0148.51 ▼0.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.82 ▼6.15
Media Library /wp-admin/upload.php3.24 ▲0.0134.28 ▲0.07

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for IT Listings
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.33 ▼1.254.53 ▲2.0242.34 ▼0.01
Dashboard /wp-admin2,219 ▲344.86 ▼0.99101.79 ▼7.8942.57 ▲1.62
Posts /wp-admin/edit.php2,105 ▲162.02 ▼0.0037.61 ▲2.5634.22 ▲0.73
Add New Post /wp-admin/post-new.php1,550 ▲3623.29 ▲5.60664.83 ▼88.4453.35 ▼7.84
Media Library /wp-admin/upload.php1,401 ▲134.18 ▼0.10105.22 ▲1.6745.82 ▼0.73

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/it-listings/inc/customizer/custom-controls.php:108
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/it-listings/inc/listings-cpt.php:62
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/it-listings/inc/customizer/front.blog.php:47
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/it-listings/inc/customizer/testimonials.php:50
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/it-listings/inc/testimonials-cpt.php:63
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/it-listings/inc/register_sidebar.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/it-listings/inc/customizer/customizer.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/it-listings/inc/customizer/featured-locations.php:98
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/it-listings/inc/notice.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/it-listings/inc/customizer/featured-property.php:67

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: custom-post-types, gutenberg, blocks, it-residence, metabox

it-listings/it-listings.php Passed 13 tests

"IT Listings" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
48 characters long description:
Listings Plugin for IT Residence WordPress Theme

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 plugin927 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP16167117927

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity2.50
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin