84% twenty-fifteen-disqus-style

Code Review | Twenty Fifteen Disqus Style

WordPress plugin Twenty Fifteen Disqus Style scored 84% from 54 tests.

About plugin

  • Plugin page: twenty-fifteen-di...
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.1.2
  • WordPress version: 6.3.1
  • First release: Apr 23, 2015
  • Latest release: Apr 23, 2015
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: abrudtkuhl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,112 total downloads

Benchmarks

Plugin footprint 83% from 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 gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.31ms] Passed 4 tests

Analyzing server-side resources used by Twenty Fifteen Disqus Style
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.94 ▼7.26
Dashboard /wp-admin3.31 ▲0.0143.24 ▼5.12
Posts /wp-admin/edit.php3.36 ▲0.0044.09 ▼1.66
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.54 ▲1.99
Media Library /wp-admin/upload.php3.23 ▲0.0035.27 ▲0.81

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Twenty Fifteen Disqus Style
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲7013.31 ▼1.131.93 ▼0.1243.23 ▼4.93
Dashboard /wp-admin2,206 ▲185.85 ▲0.95106.53 ▼0.1239.47 ▼6.69
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0340.10 ▲2.2434.59 ▲1.10
Add New Post /wp-admin/post-new.php1,534 ▼923.25 ▲0.20640.70 ▼41.8653.16 ▲0.44
Media Library /wp-admin/upload.php1,382 ▼34.21 ▼0.0198.50 ▼4.7741.62 ▼5.11

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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/twenty-fifteen-disqus-style/twentyfifteen-disqus.php:18

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 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
2 plugin tags: twenty fifteen, disqus comments

twenty-fifteen-disqus-style/twentyfifteen-disqus.php 92% from 13 tests

The entry point to "Twenty Fifteen Disqus Style" version 0.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("twenty-fifteen-disqus-style.php" instead of "twentyfifteen-disqus.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin28 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS13118
PHP1487
Markdown1103

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin