79% wp-tech-lookup

Code Review | WP Tech Lookup

WordPress plugin WP Tech Lookup scored79%from 54 tests.

About plugin

  • Plugin page: wp-tech-lookup
  • Plugin version: 1.0
  • PHP compatiblity: 5.5.9+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.2.1
  • WordPress version: 6.3.1
  • First release: Jul 7, 2017
  • Latest release: May 27, 2019
  • Number of updates: 6
  • Update frequency: every 115.0 days
  • Top authors: ashishajani (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /859 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
Installer ran successfully

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

Analyzing server-side resources used by WP Tech Lookup
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.73 ▼1.40
Dashboard /wp-admin3.32 ▲0.0249.40 ▼1.99
Posts /wp-admin/edit.php3.44 ▲0.0847.70 ▲0.94
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.96 ▼17.15
Media Library /wp-admin/upload.php3.25 ▲0.0239.55 ▲2.47
WP Tech Lookup /wp-admin/tools.php?page=wtl-tech-lookup3.2652.38

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WP Tech Lookup
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.39 ▼0.141.77 ▼0.0842.33 ▲0.49
Dashboard /wp-admin2,196 ▲165.55 ▲0.0196.68 ▲3.1642.40 ▲1.70
Posts /wp-admin/edit.php2,104 ▲71.98 ▼0.0534.49 ▼0.2136.87 ▼7.50
Add New Post /wp-admin/post-new.php1,529 ▲123.35 ▲0.21641.10 ▼36.9059.15 ▲5.64
Media Library /wp-admin/upload.php1,401 ▼24.18 ▲0.02101.85 ▼4.3546.47 ▲0.21
WP Tech Lookup /wp-admin/tools.php?page=wtl-tech-lookup2,5082.2337.5538.50

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-tech-lookup/wp-tech-lookup.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-tech-lookup/classes/wtl-cron-info.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

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
7 plugin tags: os information, file permissions, php information, server monitor, wordpress information...

wp-tech-lookup/wp-tech-lookup.php Passed 13 tests

"WP Tech Lookup" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
88 characters long description:
WP Tech Lookup plugin is to see all the necessary information about server at one place.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin734 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP713767695
CSS17336
JavaScript1113

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity12.60
▷ Minimum class complexity3.00
▷ Maximum class complexity31.00
Average method complexity4.22
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1583.33%
▷ Protected methods00.00%
▷ Private methods316.67%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
No PNG images were found in this plugin