94% terra-themes-tools

Code Review | Terra Themes Tools

WordPress plugin Terra Themes Tools scored 94% from 54 tests.

About plugin

  • Plugin page: terra-themes-tools
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.3.2
  • WordPress version: 5.8.1
  • First release: Nov 10, 2016
  • Latest release: Mar 14, 2020
  • Number of updates: 27
  • Update frequency: every 45.1 days
  • Top authors: terrathemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active / 7,061 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼139.97ms] Passed 4 tests

A check of server-side resources used by Terra Themes Tools
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1435.68 ▲12.70
Dashboard /wp-admin3.10 ▲0.0454.31 ▲6.10
Posts /wp-admin/edit.php3.21 ▲0.1154.99 ▲2.42
Add New Post /wp-admin/post-new.php5.44 ▲0.0092.05 ▼570.44
Media Library /wp-admin/upload.php3.02 ▲0.0235.31 ▲2.05

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

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

Browser metrics Passed 4 tests

Terra Themes Tools: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,900 ▲30417.59 ▲2.039.48 ▲0.3452.49 ▼0.33
Dashboard /wp-admin3,167 ▲2397.93 ▲1.98193.58 ▲10.20119.80 ▼30.45
Posts /wp-admin/edit.php2,965 ▲2264.16 ▲1.4697.19 ▲16.8389.57 ▼13.29
Add New Post /wp-admin/post-new.php1,687 ▲8318.66 ▼0.21385.71 ▲13.87128.03 ▲10.17
Media Library /wp-admin/upload.php1,811 ▲44.80 ▼0.22125.54 ▼21.63161.61 ▲40.27

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 13× 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 is_admin() in wp-content/plugins/terra-themes-tools/inc/metaboxes/slides-shortcode-metabox.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/terra-themes-tools/inc/metaboxes/projects-metabox.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/terra-themes-tools/inc/post-type-clients.php:69
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/terra-themes-tools/inc/post-type-projects.php:69
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/terra-themes-tools/inc/post-type-employees.php:69
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/terra-themes-tools/inc/custom-taxanomy-field/register-taxanomy-fields.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/terra-themes-tools/inc/post-type-testimonials.php:68
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/terra-themes-tools/inc/metaboxes/slides-metabox.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/terra-themes-tools/inc/post-type-slides.php:69
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/terra-themes-tools/inc/metaboxes/clients-metabox.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: terra themes, terrathemes, terra themes tools

terra-themes-tools/terra-themes-tools.php 92% from 13 tests

The main PHP file in "Terra Themes Tools" ver. 1.5 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,832 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP152651681,751
CSS1488994
JavaScript1322187

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity16.43
▷ Minimum class complexity8.00
▷ Maximum class complexity42.00
Average method complexity4.18
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods34
▷ Static methods12.94%
▷ Public methods34100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
inc/img/terra-themes-favicon.png1.52KB0.64KB▼ 57.85%