84% wp-theme-plugin-download

Code Review | Wp Theme plugin Download

WordPress plugin Wp Theme plugin Download scored84%from 54 tests.

About plugin

  • Plugin page: wp-theme-plugin-d...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5
  • WordPress version: 6.3.1
  • First release: Feb 15, 2017
  • Latest release: Sep 1, 2020
  • Number of updates: 14
  • Update frequency: every 92.4 days
  • Top authors: Abhay Raj (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

6,000+ active /54,789 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Analyzing server-side resources used by Wp Theme plugin Download
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.01 ▼9.28
Dashboard /wp-admin3.33 ▲0.0243.33 ▼2.29
Posts /wp-admin/edit.php3.38 ▲0.0244.41 ▼0.19
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.55 ▼15.69
Media Library /wp-admin/upload.php3.25 ▲0.0236.37 ▲3.10

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wp Theme plugin Download
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.152.01 ▲0.0144.19 ▲4.25
Dashboard /wp-admin2,206 ▲154.84 ▼0.07108.61 ▼4.4541.61 ▲0.55
Posts /wp-admin/edit.php2,092 ▲62.00 ▼0.0140.46 ▲0.3034.73 ▼1.86
Add New Post /wp-admin/post-new.php1,533 ▲1423.28 ▲0.06639.25 ▼18.7756.57 ▼7.91
Media Library /wp-admin/upload.php1,391 ▲64.22 ▼0.08100.26 ▲1.4247.02 ▲5.71

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

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
Good news, no errors were detected

SRP 50% 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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-theme-plugin-download/wp-theme-plugin-download.php:12

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (screenshot-2.jpg) image missing
  • Tags: There are too many tags (13 tag instead of maximum 10)
The official readme.txt is a good inspiration

wp-theme-plugin-download/wp-theme-plugin-download.php Passed 13 tests

The main PHP file in "Wp Theme plugin Download" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
52 characters long description:
This plugin to download your installed theme plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin114 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13159114

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions5
▷ Named functions5100.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
PNG images were not found in this plugin