84% wp-quotpedia

Code Review | WP-Quotpedia

WordPress plugin WP-Quotpedia scored84%from 54 tests.

About plugin

  • Plugin page: wp-quotpedia
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.4
  • WordPress version: 6.3.1
  • First release: Feb 6, 2018
  • Latest release: Feb 8, 2018
  • Number of updates: 27
  • Update frequency: every 0.1 days
  • Top authors: sustun (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /671 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 gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.69ms] Passed 4 tests

Analyzing server-side resources used by WP-Quotpedia
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0336.91 ▼6.00
Dashboard /wp-admin3.33 ▲0.0346.78 ▼11.70
Posts /wp-admin/edit.php3.44 ▲0.0945.90 ▲2.58
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.75 ▼11.26
Media Library /wp-admin/upload.php3.25 ▲0.0234.23 ▼5.80

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_wpb_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

WP-Quotpedia: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.31 ▼1.081.65 ▼0.1540.93 ▼8.89
Dashboard /wp-admin2,203 ▲125.79 ▲0.8495.20 ▼7.2038.99 ▼1.71
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0134.15 ▼12.0636.17 ▲1.13
Add New Post /wp-admin/post-new.php1,514 ▼2517.57 ▼5.50640.42 ▲0.0951.68 ▼2.37
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0299.85 ▼11.5143.98 ▲0.62

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_wpb_widget

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
Everything seems fine, however 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-quotpedia/wp-quotpedia.php:17

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
  • Screenshots: Add images for these screenshots: #1 (Bileşenler sayfasında görünümü.), #2 (Eklentinin site üzerinde görünümü.)
The official readme.txt might help

wp-quotpedia/wp-quotpedia.php Passed 13 tests

"WP-Quotpedia" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
23 characters long description:
Quotpedia for Wordpress

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
Good job! No executable or dangerous file extensions detected94 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File261250
PHP1122644

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
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
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png7.98KB5.93KB▼ 25.72%
screenshot-2.png15.50KB9.69KB▼ 37.45%