83% wp-novo-tempo

Code Review | WP Novo Tempo (Radio e TV)

WordPress plugin WP Novo Tempo (Radio e TV) scored 83% from 54 tests.

About plugin

  • Plugin page: wp-novo-tempo
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.2.2
  • WordPress version: 6.3.1
  • First release: May 30, 2015
  • Latest release: May 31, 2015
  • Number of updates: 10
  • Update frequency: every 0.3 days
  • Top authors: joelgarciajr84 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 918 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by WP Novo Tempo (Radio e TV)
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.90 ▼3.77
Dashboard /wp-admin3.32 ▲0.0247.09 ▲2.23
Posts /wp-admin/edit.php3.37 ▲0.0247.23 ▲3.92
Add New Post /wp-admin/post-new.php5.90 ▲0.0290.72 ▼1.48
Media Library /wp-admin/upload.php3.25 ▲0.0232.83 ▼0.59

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_wp_tv_nt
widget_recent-posts
widget_recent-comments
widget_wp_radio_nt
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Novo Tempo (Radio e TV)
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.76 ▲0.171.74 ▼0.1937.81 ▼6.23
Dashboard /wp-admin2,209 ▲205.84 ▲0.92106.09 ▼17.6844.67 ▲0.04
Posts /wp-admin/edit.php2,089 ▼02.06 ▼0.0838.17 ▲3.3535.42 ▼0.41
Add New Post /wp-admin/post-new.php1,542 ▲2323.25 ▲0.11612.62 ▼18.9660.32 ▲3.03
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0195.30 ▼15.3742.42 ▼5.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_wp_radio_nt
    • widget_wp_tv_nt
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-novo-tempo/Widgets/widget-tv-nt.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-novo-tempo/Widgets/widget-radio-nt.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-novo-tempo/Widgets/widget-radio-nt.php:3

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 on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: adventista, novo tempo, tv novo tempo, rdio novo tempo

wp-novo-tempo/WP-Novo-Tempo.php 77% from 13 tests

"WP Novo Tempo (Radio e TV)" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-novo-tempo.php" instead of "WP-Novo-Tempo.php")
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)

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
No dangerous file extensions were detected114 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP43213103
Markdown110011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
5 PNG files occupy 0.27MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png29.90KB12.23KB▼ 59.10%
screenshot-5.png7.94KB3.23KB▼ 59.26%
screenshot-4.png143.35KB50.93KB▼ 64.47%
screenshot-1.png5.36KB3.02KB▼ 43.63%
screenshot-2.png89.67KB32.12KB▼ 64.18%